package com.example.xyxwebbackend001.service;

import com.example.xyxwebbackend001.model.DTO.TPostsDTO;
import com.example.xyxwebbackend001.model.entity.TPosts;

import java.util.List;
import java.util.Map;

public interface ComService {
    List<TPostsDTO> getTPostList(Integer Id, String cityId);

    public Map<String, Object> getUserPostStats(Integer userId);

    public boolean toggleAction(String actionType, Integer postId);

    public boolean handleLikeToggle(Integer userId, Integer postId);
    boolean handleFavoriteToggle(Integer userId, Integer postId);

    boolean createComment(Integer postId, Integer userId, String content);

    boolean deleteComment(Integer commentId);

    boolean createPost(TPosts post);

    public int cleanupExpiredDrafts();

    boolean updatePost(Integer tPostId, String title, String content, String imagePath, String place, String tags);
}
